package com.qfedu.zf.app.service;

import com.qfedu.zf.app.config.OpenFeignConfig;
import com.qfedu.zf.common.vo.R;
import com.qfedu.zf.common.entity.Rent;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

@FeignClient(value = "lc-myserver",configuration = OpenFeignConfig.class)
public interface MyFeign {
    @RequestMapping("/my/selectById")
    R select();

    @RequestMapping("/my/loadPicture")
    R loadPicture(MultipartFile file);

    @RequestMapping("/my/updateName")
    R updateName(@RequestBody com.qfedu.lc.common.entity.User user);

    @RequestMapping("/my/publish")
    R publish(@RequestBody Rent rent);

    @RequestMapping( "/my/selectOne")
    R selectPublish(Integer id);

    @RequestMapping("/my/deleteOne")
    R deleteOn();

    @RequestMapping("/my/collect/find")
    R findCollect(@RequestParam("listingId") Integer listingId);

    @GetMapping("/my/collect/add")
    R add(@RequestParam("listingId") Integer listingId);
}
